﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DisplayBoardInfo.Logger
{
    public class LogMessage
    {
        private LogMessageType type;

        public LogMessageType Type
        {
            get { return type; }
        }
        private string message;

        public string Message
        {
            get { return message; }
        }

        public LogMessage(LogMessageType type, string message)
        {
            this.type = type;
            this.message = message;
        }

        public override string ToString()
        {
            string typeString = "";
            switch (type)
            {
                case LogMessageType.Error:
                    typeString = "[Błąd] ";
                    break;
                case LogMessageType.Warning:
                    typeString = "[Ostrzeżenie] ";
                    break;
                default:
                    typeString = "[Info] ";
                    break;
            }

            return typeString + Message;
        }
    }
}
